package com.cosseen.service.impl;

import com.cosseen.mapper.BrandMapper;
import com.cosseen.pojo.Brand;
import com.cosseen.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandServiceImpl implements BrandService {

    @Autowired
    BrandMapper brandMapper;

    @Override
    public List<Brand> queryAllBrand() {
        return brandMapper.queryAllBrand();
    }

    @Override
    public Brand queryById(int id) {
        return brandMapper.queryById(id);
    }
}
